<?php 

class contact_model extends CI_Model
{
	function __construct()
	{
		parent::__construct();	
	}
	
	function savecontact()
	{
		$data = array(
					'lb_cusmail' => $this->input->post('email'),
					'lb_cusname' => $this->input->post('hoten'),
					'lb_address' => $this->input->post('address'),
					'nb_phone' => $this->input->post('phone'),
					'lb_subject' => $this->input->post('subject'),
					'lb_content' => $this->input->post('noidung'),
					);
		return $this->db->insert('lienhe',$data);			
	}
}
?>
